<?php
    session_start();
    include_once ('db.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <link rel="shortcut icon" href="img/todo/icono_sitio.ico">
        <meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Cache-Control" content="no-cache">
        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">  
        <meta http-equiv="Lang" content="en">
        <meta name="author" content="">
        <meta http-equiv="Reply-to" content="@.com">
        <meta name="generator" content="PhpED 5.8">
        <meta name="description" content="">
        <meta name="keywords" content="">
        <meta name="creation-date" content="01/01/2009">
        <meta name="revisit-after" content="15 days">
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
        <script>
            !window.jQuery && document.write('<script src="js/jquery-1.4.3.min.js"><\/script>');
        </script>
        <script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>

        <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.3.pack.js"></script>
        <link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.3.css" media="screen" />
        <link rel="stylesheet" href="css/fancy.css" />
        <link rel="stylesheet" href="css/index.css" />
        <link rel="stylesheet" href="style.css" />    
        <title>Men&uacute</title>
        <script type="text/javascript">
            $(document).ready(function(){
                $(window).resize(function(){
                    // aquí le pasamos la clase o id de nuestro div a centrar (en este caso "caja")
                    $('.centrar_menu').css({
                        position:'absolute',
                        left: ($(window).width() - $('.centrar_menu').outerWidth())/2,
                        top: ($(window).height() - $('.centrar_menu').outerHeight())/2
                    });
                });
                // Ejecutamos la función
                $(window).resize();
            });

        </script>
        <script type="text/javascript">
            $(document).ready(function() {

                $("a.example4").fancybox({
                    'opacity'        : true,
                    'overlayShow'    : false,
                    'width'    : 865,
                    'height'    : 320,
                    'padding' : 0,
                    'showCloseButton': false,
                    'transitionIn'    : 'elastic',
                    'transitionOut'    : 'elastic'
                });

                $("a.example5").fancybox({
                    'opacity'        : true,
                    'overlayShow'    : false,
                    'width'    : 865,
                    'height'    : 620,
                    'padding' : 0,
                    'showCloseButton': false,
                    'transitionIn'    : 'elastic',
                    'transitionOut'    : 'elastic'
                });

                $("a.example6").fancybox({
                    'opacity'        : true,
                    'overlayShow'    : false,
                    'width'    : 865,
                    'height'    : 420,
                    'padding' : 0,
                    'showCloseButton': false,
                    'transitionIn'    : 'elastic',
                    'transitionOut'    : 'elastic'
                });



                $('a.delete').live("click", function(e) {

                    e.preventDefault();
                    var parent = $(this).parent();
                    if(confirm("Seguro(a) que desea eliminar el registro?"))
                        {
                        $.ajax({
                            type: 'get',
                            url: 'medida.php',
                            data: 'ajax=1&delete=' + parent.attr('id').replace('record-',''),
                            beforeSend: function() {
                                parent.animate({'backgroundColor':'#fb6c6c'},300);
                            },
                            success: function() {
                                parent.slideUp(300,function() {
                                    parent.remove();
                                });
                            }
                        });
                    }
                });
            });
        </script>
    </head>
    <body>
        <div id="logged"><?php
                echo "<span class=\"input_fancy2\">Bienvenido,</span>";
                if (isset($_SESSION['lider'])) {
                    echo "<span class=\"input_fancy2\"> " . $_SESSION['lider'] . " /</span> ";
                    echo " <a href=\"login.php\" target=\"_top\"><span style=\"font-weight:bold; font-size:14px; color:black;\"> Salir</span></a>";
                    echo '<center><img src="img/todo/saade khalilieh logo.JPG" border="0" ></center> ';
                } else { ?>
                <SCRIPT LANGUAGE="javascript">
                    location.href = "login.php";
                </SCRIPT>
                <?php
                }
        ?></div>    
        <br />
        <br>

        <br />

        <div class="centrar_menu">

        <div class="opcion_menu"><a href="busca_cliente.php" class="iframe example5"><img src="img/todo/nuevo_servicio_button.png" border="0"></a></div>
        <div class="opcion_menu"><a href="inserta_pago.php" class="iframe example6"><img src="img/todo/insertar_pago_button.png" border="0"></a></div> 


        <div class="opcion_menu"><a href="imprime_factura_empresa.php" class="iframe example5"><img src="img/todo/factura_empresa_button.png" border="0"></a></div>
        <div class="opcion_menu"><a href="reporte_pago_empresa.php" class="iframe example6"><img src="img/todo/reporte_quincenal_button.png" border="0"></a></div> 


    </body>
</html>
